package cake.dao;

import java.util.List;

import cake.entity.Comment;

public interface CommentDao {
	List<Comment> getAll();
	List<Comment> getThree(int id,int pageSize, int pageNum);
	boolean addComment(Comment c);
	boolean deleteComment(int id);
	int fetchCommentRows(int cid);
	int fetchCommentRowsUC(int cid,String title);
	List<Comment> getThreeAndUser(int id,int pageSize, int pageNum);
	List<Comment> getUserAndCake(int cid,String title,int pageSize, int pageNum);
}
